Be able to call setLabelText more than once.
https://bugzilla.gnome.org/show_bug.cgi?id=682445
},
setLabelText: function(text) {
- if (this.label == null)
+ if (this.label == null) {
this.label = new St.Label({ style_class: 'dash-label'});
+ Main.layoutManager.addChrome(this.label);
+ this.label.hide();
+ }
this.label.set_text(text);
- Main.layoutManager.addChrome(this.label);
- this.label.hide();
},
hideLabel: function () {
+ if (this.label == null)
+ return;
+
Tweener.addTween(this.label,
{ opacity: 0,
time: DASH_ITEM_LABEL_HIDE_TIME,